import request from '../utils/request1'

export function getcurrentFault(id,pageCurrent,pageSize) {
  return request({
    url: '/cv/diagnosisOverview/currentFault',
    method: 'post',
    data: {
      valvehallId: id,
      pageCurrent,
      pageSize
    }
  })
}
export function gethistoryFault(data) {
    return request({
      url: '/cv/diagnosisOverview/historyFault',
      method: 'post',
      data
    })
  }

  export function getfaultCount(id) {
    return request({
      url: '/cv/diagnosisOverview/faultCount',
      method: 'post',
      data: {
        valvehallId: id,
      }
    })
  }
  